import base from "../base.js"
import ajax from "../../api/ajax.js"
export default class extends base {

    render() {
        $("body").html(
            `<div id="el"></div>
    <button class="btn">点击</button>
    `
        )
    }
    handle() {

        $(".btn").on("click", async e => {
            
            await ajax.asyncFn().then(data => {
                console.log(data);
            })

            // ajax.test(cb)


            function cb(data) {
                $("#el").text(data)
                return

            }
        })


    }

}